class CreateNews < ActiveRecord::Migration
  def change
    create_table :news, :id => false do |t|
      t.column :id, 'integer unsigned', :limit => 4
	  t.string "image", :limit => 60
	  t.string "name", :limit => 40
	  t.text "description"
	  t.date "time"
      t.timestamps
    end
	execute "ALTER TABLE news ADD PRIMARY KEY (id);" 
  end
end
